package cn.iocoder.yudao.module.system.enums;

/**
 * System 操作日志枚举
 * 目的：统一管理，也减少 Service 里各种“复杂”字符串
 *
 * @author 芋道源码
 */
public interface LogRecordConstants {

    // ======================= SYSTEM_USER 用户 =======================

    String SYSTEM_USER_TYPE = "SYSTEM 用户";
    String SYSTEM_USER_CREATE_SUB_TYPE = "创建用户";
    String SYSTEM_USER_CREATE_SUCCESS = "创建了用户【{{#user.nickname}}】";
    String SYSTEM_USER_UPDATE_SUB_TYPE = "更新用户";
    String SYSTEM_USER_UPDATE_SUCCESS = "更新了用户【{{#user.nickname}}】: {_DIFF{#updateReqVO}}";
    String SYSTEM_USER_DELETE_SUB_TYPE = "删除用户";
    String SYSTEM_USER_DELETE_SUCCESS = "删除了用户【{{#user.nickname}}】";
    String SYSTEM_USER_UPDATE_PASSWORD_SUB_TYPE = "重置用户密码";
    String SYSTEM_USER_UPDATE_PASSWORD_SUCCESS = "将用户【{{#user.nickname}}】的密码从【{{#user.password}}】重置为【{{#newPassword}}】";

    // ======================= SYSTEM_ROLE 角色 =======================

    String SYSTEM_ROLE_TYPE = "SYSTEM 角色";
    String SYSTEM_ROLE_CREATE_SUB_TYPE = "创建角色";
    String SYSTEM_ROLE_CREATE_SUCCESS = "创建了角色【{{#role.name}}】";
    String SYSTEM_ROLE_UPDATE_SUB_TYPE = "更新角色";
    String SYSTEM_ROLE_UPDATE_SUCCESS = "更新了角色【{{#role.name}}】: {_DIFF{#updateReqVO}}";
    String SYSTEM_ROLE_DELETE_SUB_TYPE = "删除角色";
    String SYSTEM_ROLE_DELETE_SUCCESS = "删除了角色【{{#role.name}}】";

    // ======================= YM_AREA 区域 =======================

    String YM_AREA_TYPE = "YM 区域";
    String YM_AREA_CREATE_SUB_TYPE = "创建区域";
    String YM_AREA_CREATE_SUCCESS = "创建了区域【{{#area.areaName}}】";
    String YM_AREA_IMPORT_SUB_TYPE = "导入区域";
    String YM_AREA_IMPORT_SUCCESS = "导入了区域";
    String YM_AREA_DELETE_SUB_TYPE = "删除区域";
    String YM_AREA_DELETE_SUCCESS = "删除了区域【{{#area.areaName}}】";
    String YM_AREA_UPDATE_SUB_TYPE = "更新区域";
    String YM_AREA_UPDATE_SUCCESS = "更新了区域【{{#area.areaName}}】: {_DIFF{#updateReqVO}}";
    // ======================= YM_SITE 电站 =======================
    String YM_SITE_TYPE = "YM 电站";
    String YM_SITE_CREATE_SUB_TYPE = "创建电站";
    String YM_SITE_CREATE_SUCCESS = "创建了电站【{{#site.id}}】";
    String YM_SITE_UPDATE_SUB_TYPE = "更新电站";
    String YM_SITE_UPDATE_SUCCESS = "更新了电站【{{#site.siteName}}】: {_DIFF{#updateReqVO}}";
    String YM_SITE_DELETE_SUB_TYPE = "删除电站";
    String YM_SITE_DELETE_SUCCESS = "删除了电站【{{#id}}】";
    String YM_SITE_IMPORT_SUB_TYPE = "导入电站";
    String YM_SITE_IMPORT_SUCCESS = "导入了电站【{{占字符}}】";
    String YM_SITE_LOCATION_SUB_TYPE = "电站自动定位区域";
    String YM_SITE_LOCATION_SUCCESS = "电站自动定位区域了【{{占字符}}】";

    // ======================= YM_TICKET 工单 =======================
    String YM_TICKET_TYPE = "YM 工单";
    String YM_TICKET_CREATE_SUB_TYPE = "创建工单";
    String YM_TICKET_CREATE_SUCCESS = "创建了工单【{{#ticket.id}}】";
    String YM_TICKET_UPDATE_SUB_TYPE = "更新UPDATE工单";
    String YM_TICKET_UPDATE_SUCCESS = "更新UPDATE了工单【{{#ticket.ticketNumber}}】: {_DIFF{#updateReqVO}}";
    String YM_TICKET_EDIT_SUB_TYPE = "更新EDIT工单";
    String YM_TICKET_EDIT_SUCCESS = "更新EDIT了工单【{{#ticket.ticketNumber}}】: {_DIFF{#updateReqVO}}";
    String YM_TICKET_DELETE_SUB_TYPE = "删除工单";
    String YM_TICKET_DELETE_SUCCESS = "删除了工单【{{#id}}】";
    String YM_TICKET_REFUSE_SUB_TYPE = "拒绝工单";
    String YM_TICKET_REFUSE_SUCCESS = "拒绝了工单【{{#updateReqVO.id}}】";
    String YM_TICKET_START_SUB_TYPE = "开始工单";
    String YM_TICKET_START_SUCCESS = "开始了工单【{{#updateReqVO.id}}】";
    String YM_TICKET_END_SUB_TYPE = "结束工单";
    String YM_TICKET_END_SUCCESS = "结束了工单【{{#updateReqVO.id}}】";
    String YM_TICKET_REDISTRIBUTE_SUB_TYPE = "重新派发工单";
    String YM_TICKET_REDISTRIBUTE_SUCCESS = "重新派发了工单【{{#updateReqVO.id}}】";
    String YM_TICKET_CLOSE_SUB_TYPE = "关闭工单";
    String YM_TICKET_CLOSE_SUCCESS = "关闭了工单【{{#updateReqVO.id}}】";





}
